﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using OS.Common.Core;
using Sample.Test.WebApi.DAL;
using Sample.Test.WebApi.Model;

namespace Sample.Test.WebApi.Controllers
{
    [Produces("application/json")]
    [Route("api/Test")]
    public class TestController : Controller
    {
        private static readonly PCSpiderService service = new PCSpiderService();

        [HttpGet]
        public async Task<PageListResult<pc_spider>> GetCurrent(int status)
        {
            return await service.GetList(status);
        }
    }
}